A pyramid chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.key.js"></script>
<script src="RGraph.pie.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="350" height="350">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var donut = new RGraph.Pie({
id: 'cvs',
data: [66,12,33,66],
options: {
colors: ['#ccf','#aa0','#ff0','#ccf'],
strokestyle: 'rgba(0,0,0,0)',
centerx: 275,
key: ['Sky','Dark side of pyramid','Sunny side of pyramid'],
keyColors: ['#ccf','#aa0','#ff0'],
keyPositionGraphBoxed: false,
keyPositionY: 150,
textSize: 20,
textAccessible: true
}
}).draw();
};
</script>